<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>表格标签</title>
</head>
<body>

<!--表格-->
<table border="1" width="50%" cellpadding="0" cellspacing="0" bgcolor="#ffffff" align="center">
    <tr>
        <!--        <td>编号</td>-->
        <!--        <td>姓名</td>-->
        <!--        <td>成绩</td>-->
        <th>编号</th>
        <th>姓名</th>
        <th>成绩</th>
    </tr>
    <tr>
        <td>1</td>
        <td>张三</td>
        <td>90</td>
    </tr>
    <tr>
        <td>2</td>
        <td>李四</td>
        <td>99</td>
    </tr>
</table>

<hr>

<table border="1" width="50%" cellpadding="0" cellspacing="0" bgcolor="#ffffff" align="center">

    <thead>
    <caption>学生信息表</caption>

    <tr>
        <th>编号</th>
        <th>姓名</th>
        <th>成绩</th>
    </tr>
    </thead>

    <tbody>
    <tr bgcolor="green" align="center">
        <td>1</td>
        <td>张三</td>
        <td>90</td>
    </tr>
    <tr>
        <td>2</td>
        <td>李四</td>
        <td>99</td>
    </tr>
    </tbody>
    <tfoot>
    <tr>
        <td>3</td>
        <td>王武</td>
        <td>98</td>
    </tr>
    </tfoot>
</table>

<hr>

<!--
rowspan：合并行
colspan：合并列
-->
<table border="1" width="50%" cellpadding="0" cellspacing="0" bgcolor="#ffffff" align="center">
    <tr>
        <th rowspan="2">编号</th>
        <th>姓名</th>
        <th>成绩</th>
    </tr>
    <tr>
        <td>1</td>
        <td>张三</td>
    </tr>
    <tr>
        <td>2</td>
        <td colspan="2">李四</td>
    </tr>
</table>


</body>
</html>